package com.tanhua.server.utils;

import com.tanhua.server.pogo.User;

public class UserThreadLocal {
    private static ThreadLocal<User> LOCAL=new ThreadLocal<>();

    private UserThreadLocal(){}

    public static void set(User user){
        LOCAL.set(user);
    }
    public static User get(){
        return LOCAL.get();
    }

}
